home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-02-14 | 1.1 KB | 24 lines | [TEXT/ALFA] |
- Source Notes
- ************
-
- Reset DTDBs is very, very simple--shows a few dialogs, calls a few Desktop Manager
- functions, and then restarts. If you are not familiar with the Desktop Manager, it
- would do you good to read pages 9-44 to 9-60 in Inside Macintosh VI before you
- read the source. The code simply cycles through the VCB and calls
- PBDTCloseDown(), PBDTFlush(), and PBDTDelete() on each vRefNum in the VCB queue.
- The done() macro compares its argument to the qTail of the VCB queue, and then
- checks to see if there is only one mounted volume (as the case may be.) If these
- are both true, then the whole VCB has been scanned, and the loop stops.
-
- The compiled program is now distributed with the source. I imagine (although I am
- not sure) that it could be ported to MPW C very easily. You are free to use elements
- of the Reset DTDBs code in your programs, if you include the phrase "Portions
- copyright © 1992-1993 Brian Gaeke" in your about box.
-
- The source code to Reset DTDBs is copyright © 1992-1993 Brian Gaeke. All rights
- reserved worldwide except where specifically permitted.
-
- Brian Gaeke
- Internet: brg@dgate.org
- GEnie: BRG
-